package com.edu.javaweb.service.impl;

import com.edu.javaweb.mapper.StuClassMapper;
import com.edu.javaweb.pojo.StuClass;
import com.edu.javaweb.service.StuClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuClassServiceImpl implements StuClassService {
    @Autowired
    private StuClassMapper stuClassMapper;
    @Override
    public List<StuClass> findAll() {
        return stuClassMapper.findAll();
    }

    @Override
    public void insClass(StuClass stuClass) {
        stuClassMapper.insClass(stuClass);
    }

    @Override
    public void upClass(StuClass stuClass) {
        stuClassMapper.upClass(stuClass);
    }

    @Override
    public void delById(Integer id) {
        stuClassMapper.delById(id);
    }
}
